﻿using ReflectionStudio.Core.Events;
using System;
using System.ComponentModel;
using System.Data;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using WPFExcelReport.Helpers;
using System.Collections;
using System.Collections.Generic;
namespace WPFExcelReport
{
    public partial class TQEKP4VK
    {
        public TQEKP4VK()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VICC_QUERYTB();
            this.DataContext = MV;
            InitializeComponent();
        }
        public override void Window_Loaded(object sender, RoutedEventArgs e)
        {
            base.Window_Loaded(sender, e);

        }
        public override void Query_KeyUp(object sender, KeyEventArgs e)
        {
            if (e.Key != System.Windows.Input.Key.Return || e.Key != System.Windows.Input.Key.Enter)
                return;
            this.Focus();
            INFO = "AND ABAVKAUFKRS = '%" + TMV.KRS + "'"
            + "AND ABAVKAUFLFD = '" + TMV.LFD + "'"
            ;
            QTYP = "QEKP4VK";
            base.Query_KeyUp(sender, e);
            Control sd = sender as Control;
            sd.Focus();
        }
        public override void OnQueryChg(bool value)
        {
            if (!value)
                return;
            Query_KeyUp(null, null);
            base.OnQueryChg(value);
        }
    }
}
